package com.yb.designpattern.structure.proxy.jingt;

import com.yb.designpattern.structure.proxy.Subject;

public class SubjectProxy implements Subject {
    private Subject subject;

    public SubjectProxy(Subject subject) {
        this.subject = subject;
    }

    @Override
    public void a() {
        System.out.println("执行代理类的a()方法开始");
        subject.a();
        System.out.println("执行代理类的a()方法结束");
    }
}
